package com.rimuru.a09.aop;

import com.rimuru.a09.service.MyService;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Aspect // 注意此切面并未被spring管理
public class MyAspect {

    private static final Logger log = LoggerFactory.getLogger(MyService.class);

    @Before("execution(* com.rimuru.a09.service.MyService.foo())")
    public void before() {
        log.debug("before()");
    }

}
